import storage from '../../utils/storage'
export default {
    namespaced: true,
    state: {
        map: [],
    },
    //局部变化
    mutations: {
        setMap(state, map) {
            state.map = map
            storage.setItem('map',map)
        }
    },
    actions: {
        //局部动作
        updateMap(context, map) {
          context.commit('setMap', map)
          // context.commit('menus', newData.menus)
        }
      }
}